package threads.collaboration;

import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;

public class ResultingFutureThread implements Callable<String>
{

	private final CountDownLatch latch;
	private String source;

	public ResultingFutureThread(CountDownLatch latch, String source)
	{
		this.latch = latch;
		this.source = source;
		
	}
	
	@Override
	public String call() throws Exception
	{
		latch.await();
		System.out.println("resulting thread finished");
		return "Resulting Future Thread";
	}
	
}
